<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=utf-8"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .d1{
            display: inline-block;
        }
        .d2{
            display: inline-block;
        }
    </style>
</head>
<body>
    <form method="post" action="${pageContext.request.contextPath}/external_update">
        <div class="d1">
           <p>
               <span>外来人员姓名</span>
               <input type="text" name="floName" required="required" value="${floName}" />
               <span style="color: red">*</span>
           </p>
           <p>
               <span>性别</span>
               <input type="text" name="floGender"  required="required" value="${floGender}"/>
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 年龄</span>
               <input type="text" name="floAge" required value="${floAge}" />
               <span style="color: red">*</span>
           </p>
           <p>
               <span> 户籍所在地</span>
               <input type="text" name="floArea" required value="${floArea}" />
               <span style="color: red">*</span>
           </p>

            <p>
                <span>户籍所在地明细</span>
                <input type="text" name="floDetail" required="required" value="${floDetail }"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>现住地址</span>
                <input type="date" name="floAddress" required value="${floAddress}"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>文化程度</span>
                <select name="floLevelEducationId" required>
                    <option value="1" <c:if test="${floLevelEducationId==1}">selected</c:if>>学龄前</option>
                    <option value="2" <c:if test="${floLevelEducationId==2}">selected</c:if>>文盲</option>
                    <option value="3" <c:if test="${floLevelEducationId==3}">selected</c:if>>小学</option>
                    <option value="4" <c:if test="${floLevelEducationId==4}">selected</c:if>>初中</option>
                    <option value="5" <c:if test="${floLevelEducationId==5}">selected</c:if>>高中</option>
                    <option value="6" <c:if test="${floLevelEducationId==6}">selected</c:if>>中专</option>
                    <option value="7" <c:if test="${floLevelEducationId==7}">selected</c:if>>大专</option>
                    <option value="8" <c:if test="${floLevelEducationId==8}">selected</c:if>>本科</option>
                    <option value="9" <c:if test="${floLevelEducationId==9}">selected</c:if>>硕士</option>
                    <option value="10" <c:if test="${floLevelEducationId==10}">selected</c:if>>博士</option>
                </select>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>政治面貌</span>
                <select name="floPoliticalId" required>
                    <option value="1" <c:if test="${floPoliticalId==1}">selected</c:if>>中共党员</option>
                    <option value="2" <c:if test="${floPoliticalId==2}">selected</c:if>>共青团员</option>
                    <option value="3" <c:if test="${floPoliticalId==3}">selected</c:if>>民主党派</option>
                    <option value="4" <c:if test="${floPoliticalId==4}">selected</c:if>>群众</option>
                </select>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>联系电话</span>
                <input type="text" name="floPhone" required value="${floPhone}"/>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>婚姻状况</span>
                <select name="floMarriageId" required>
                    <option value="1" <c:if test="${floMarriageId==1}">selected</c:if>>已婚</option>
                    <option value="2" <c:if test="${floMarriageId==2}">selected</c:if>>未婚</option>
                    <option value="3" <c:if test="${floMarriageId==3}">selected</c:if>>离婚</option>
                    <option value="4" <c:if test="${floMarriageId==4}">selected</c:if>>再婚</option>
                    <option value="5" <c:if test="${floMarriageId==5}">selected</c:if>>丧偶</option>
                    <option value="6" <c:if test="${floMarriageId==6}">selected</c:if>>未达法定年龄</option>
                </select>
                <span style="color: red">*</span>
            </p>
            <p>
                <span>所在企业</span>
                <input type="text" name="floEnterprise" required value="${floEnterprise}"/>
                <span style="color: red">*</span>
            </p>
        </div>
        <div>
            <button type="submit">修改</button>
        </div>
    </form>
</body>
</html>
